﻿<HTML>
  <HEAD>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <TITLE>Create bookmark</TITLE>
    <LINK REL="stylesheet" TYPE="text/css" HREF="http://help.arcgis.com/en/sdk/10.0/common/style/esri_sdk_web.css">
  </HEAD>
  <BODY topmargin="0" id="bodyID" class="dtBODY">
    <div class="sdk_topic">
      <div id="nsbanner" esri_sdk_guid="8b32a140-a6e7-415f-a653-656235150201" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
        <div id="TitleRow" class="bannertitle">
          <table class="titleWithBackground">
            <td>
              <H1>Create bookmark<a name="ICallout"></a></H1>
            </td>
          </table>
        </div>
      </div><br xmlns:MSHelp="http://msdn.microsoft.com/mshelp"><div class="main">
        <fieldset class="Property" style="width: auto" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
          <legend class="PropertyName">Purpose</legend><span class="PropertyValue"><purpose>
    <div xmlns="http://www.w3.org/1999/xhtml">This sample demonstrates how to create a multi-item toolbar menu with spatial bookmarks. It shows how to use HookHelper to get the focus map and create a bookmark.</div>
  </purpose></span></fieldset><br xmlns:MSHelp="http://msdn.microsoft.com/mshelp"><h4>How to use</h4>
        <p>See 
        <a href="http://help.arcgis.com/en/sdk/10.2/java_ao_adf/conceptualhelp/engine/index.html#/samples/00010000042n000000/">How to use ArcGIS samples</a>
        for help running the sample.</p>
        <ol>
          <li>Run the CreateBookmark application.</li>
          <li>Open a map document, and zoom in to a certain extent.</li>
          <li>Click the down arrow next to the Spatial Bookmarks toolbar item and click Create. A dialog box opens.</li>
          <li>Type the bookmark name. The new spatial bookmark is added to the multi-item toolbar menu. A JOptionPane input dialog is used to create a name for the bookmark. The count is maintained by using IEnumSpatialBookmark.</li><br></ol><br><br><hr tabIndex="-1" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"><br xmlns:MSHelp="http://msdn.microsoft.com/mshelp"><table class="dtTable" cellspacing="0" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
          <tr>
            <th>Development licensing</th>
            <th>Deployment licensing</th>
          </tr>
          <tr style="empty-cells:show">
            <td>Engine Developer Kit</td>
            <td>Engine</td>
          </tr>
          <tr style="empty-cells:show">
            <td>
            </td>
            <td>ArcGIS for Desktop Basic</td>
          </tr>
          <tr style="empty-cells:show">
            <td>
            </td>
            <td>ArcGIS for Desktop Standard</td>
          </tr>
          <tr style="empty-cells:show">
            <td>
            </td>
            <td>ArcGIS for Desktop Advanced</td>
          </tr>
        </table><br xmlns:MSHelp="http://msdn.microsoft.com/mshelp"><br><br></div>
    </div>
  </BODY>
</HTML>